<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/2/1
 * Time: 18:25
 */

namespace App\Http\Traits;

use Illuminate\Http\Request;

trait DistrictTrait
{
    use BaseTrait;
    // 城市编码
    protected $citycode;
    // 地区编码
    protected $adcode;

    public function __construct(Request $request)
    {
        $this->citycode = $request->input('citycode', 0);
        $this->adcode = $request->input('adcode', 0);
    }
}